package sandbox.dto;

import java.util.Date;
import sandbox.domain.Foo;

@EntityMapping(entityClass = Foo.class)
public class FooDto implements Dto {

    private Long id;
    private Date date;
    private Double sum;
    private BarDto bar;
    private Long barId;

    @AttributeMapping
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Double getSum() {
        return sum;
    }

    public void setSum(Double sum) {
        this.sum = sum;
    }

    @AttributeMapping
    public BarDto getBar() {
        return bar;
    }

    public void setBar(BarDto bar) {
        this.bar = bar;
    }

//    @AttributeMapping(name = "bar")
    public Long getBarId() {
        return barId;
    }

    public void setBarId(Long barId) {
        this.barId = barId;
    }
}
